let bian = (box, arr, e) => {
    let cishu = 0;
    for (let a in arr) {
        cishu++;
        let speed;
        clearInterval(box[a])
        box[a] = setInterval(() => {
            // console.log(arr[a])
            // let ba = box.style[a]
            // console.log(ba)
            let le = parseInt(window.getComputedStyle(box)[a])
            // let b = Object.keys(a)
            speed = (arr[a] - le) / 10;
            speed = speed > 0 ? Math.ceil(speed) : Math.floor(speed);
            le = le + speed;
            // console.log(le)
            box.style[a] = le + "px"
            // console.log(le)
            // console.log(arr[a])
            // console.log(cishu)
            // console.log(arr)
            if (le == arr[a]) {
                clearInterval(box[a]);
                cishu--;

                if (cishu == 0) {
                    // console.log("asd")
                    e && e()
                }

            }
            // box.style[a] = arr[a] + "px"


        }, 30)
    }
}

let bian1 = (box, arr, e) => {
    let cishu = 0;
    for (let a in arr) {
        cishu++;
        let speed;
        clearInterval(box[a])
        box[a] = setInterval(() => {
            // console.log(arr[a])
            // let ba = box.style[a]
            // console.log(ba)
            let le = parseInt(window.getComputedStyle(box)[a])
            // let b = Object.keys(a)
            speed = (arr[a] - le) / 10;
            speed = speed > 0 ? Math.ceil(speed) : Math.floor(speed);
            le = le + speed;
            // console.log(le)
            box.style[a] = le + "px"
            // console.log(le)
            // console.log(arr[a])
            // console.log(cishu)
            // console.log(arr)
            if (le == arr[a]) {
                clearInterval(box[a]);
                cishu--;

                if (cishu == 0) {
                    // console.log("asd")
                    console.log("asd")
                    e && e()
                }

            }
            // box.style[a] = arr[a] + "px"


        }, 90)
    }
}